// Package dao
/**
* @Project : geektime-basic-go-study
* @File    : init.go
* @IDE     : GoLand
* @Author  : Tvux
* @Date    : 2024/9/7 13:10
**/

package dao

import (
	"geektime-basic-go-study/webook/backend/internal/repository/dao/article"
	"gorm.io/gorm"
)

func InitTables(db *gorm.DB) error {
	return db.AutoMigrate(
		&User{},
		&article.Article{},
		&article.PublishedArticle{},
	)
}
